<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<t:base type="jquery,easyui,tools,DatePicker"></t:base>
<div class="easyui-layout" fit="true">
  <div region="center" style="padding:0px;border:0px">
  <t:datagrid name="dictCategoryList" checkbox="false" fitColumns="true" title="我的报税单" actionUrl="selectService.do?myDatagrid" idField="id" fit="true" queryMode="group">
   <t:dgCol title="主键"  field="id"  hidden="true"  queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="状态"  field="state_value"  hidden="true"  query="false" queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="申请日期"  field="applyDate" formatter="yyyy-MM-dd" hidden="false"  queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="申请人"  field="applyUser.realName"   query="false" queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="手机"  field="applyUser.mobilePhone"   query="false" queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="类型"  field="servieType_name"   query="false" queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="状态"  field="state_name"   query="false" queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="操作" field="opt" width="100"></t:dgCol>   
   <t:dgFunOpt  funname="goDetail(id)" title="编辑"  exp="state_value#eq#0"/>
   <t:dgFunOpt  funname="submit(id)" title="提交申请" exp="state_value#eq#0" />
   <t:dgFunOpt  funname="viewChangeInfo(id)" title="查看更正信息" exp="state_value#eq#2" />
   <t:dgFunOpt  funname="doSign(id)" title="电子签名" exp="state_value#eq#3" />
   <t:dgFunOpt  funname="viewSign(id)" title="查看签名" exp="state_value#eq#4" />
   </t:datagrid>
  </div>
 </div>
 <script type="text/javascript">
 $(document).ready(function(){
 		//给时间控件加上样式
 		$("#dictGroupListtb").find("input[name='createDate']").attr("class","Wdate").click(function(){WdatePicker({dateFmt:'yyyy-MM-dd'});});
 });
 
 function viewChangeInfo(id){
	 window.location.href="selectService.do?goChangePage&id="+id;
 }
 
 function viewSign(id){
	 window.location.href="selectService.do?goFinalPage&id="+id;
 }
 
 function goDetail(id){
	 window.location.href= "selectService.do?goPage3&id="+id;
 }
 
 function doSign(id){
	 window.location.href= "selectService.do?goSign&id="+id;
 }
 
 function submit(id){
	 $.ajax({
		 url:'selectService.do?submit&id='+id,
		 success:function(d){
			 d = $.parseJSON(d);
			 tip(d.msg);
			 reloadTable();
		 }
	 });
 }
 
//导入
function ImportXls() {
	openuploadwin('Excel导入', 'dictCategoryController.do?upload', "dictCategoryList");
}

//导出
function ExportXls() {
	JeecgExcelExport("dictCategoryController.do?exportXls","dictCategoryList");
}

 
 </script>